package com.javasea.qrprint.util;

import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;

/**
 *@ClassName RulerUtil
 *@Description TODO
 *@Author longxiaonan@163.com
 *@Date 2022/3/27 0027 21:01
 */
public class RulerUtil {

    public static String S4060 = "4060";

    public static String S4080 = "4080";

    public static String S5080 = "5080";

    public static String S50100 = "50100";

    public static Function<Double, Double> width = width -> (11.16 * width);

    public static Function<Double, Double> hight = hight -> (10.76 * hight);

    public static Map<String, Handler> map = new HashMap<>();

    public static double get4060Width(){ return width.apply(60.0); }

    public static  double get4080Width(){
        return width.apply(80.0);
    }

    public static double get5080Width(){
        return width.apply(80.0);
    }

    public static double get50100Width(){
        return width.apply(100.0);
    }

    public static double get4060Hight(){
        return hight.apply(40.0);
    }

    public static double get4080Hight(){
        return hight.apply(40.0);
    }

    public static double get5080Hight(){
        return hight.apply(50.0);
    }

    public static double get50100Hight(){
        return hight.apply(50.0);
    }

}
